package com.hmall.api.client;


import com.hmall.api.client.fallback.TradeClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 交易服务openfeign远程调用客户端
 */
@FeignClient(name = "trade-service", fallbackFactory = TradeClientFallback.class)
public interface TradeClient {

    @PutMapping("/{orderId}")
    void markOrderPaySuccess(@PathVariable("orderId") Long orderId);
}
